import StartWindown 1.0
import QtQuick 2.0
import QtQuick.Particles 2.0

Item  {
    width: 400
    height: 400

    function updateText(text) { fuckingText.text = text; }

    StartWindown{
        z:1
    }


    Text {
       id: fuckingText
       anchors { bottom: parent.bottom; horizontalCenter: parent.horizontalCenter; bottomMargin: 5 }
       text: "正在加载……"
       font.family:"微软雅黑"
   }


    /*Image {
        id: image2
        x: 0
        y: 0
        source: "qrc:/init/res/starfish_mask.png"
         z:1
    }*/

    ParticleSystem {
        width: 300
        height: 300
        anchors.centerIn: parent

        ImageParticle {
            source: "qrc:/init/res/star1.png"//glowdot
            z: 2
            anchors.fill: parent
            color: "#32cdc2"
            colorVariation: 0.0
        }

        Emitter {
            anchors.fill: parent
            emitRate: 6000
            lifeSpan: 720
            size: 10
            //! [0]
            shape: MaskShape {
                source: "qrc:/init/res/starfish_mask.png"
            }
            //! [0]
        }

        /*ImageParticle
        {
            source: "qrc:/init/res/star1.png"
            colorVariation: 1.0
            color: "#ffff0000"
        }

        Emitter
        {
                emitRate: 20
                size: 20
                lifeSpan: 4000
                velocity: AngleDirection
                {
                    magnitude: 100
                    angleVariation: 360
                }
         }*/


    }
}
